<#if !parameters.cssClass?exists>
	${tag.addParameter('cssClass', "checkboxList")}
</#if>
<#if parameters.fieldGroup?exists || parameters.gridColumn?exists>
	<#include "/${parameters.templateDir}/simple/checkbox.ftl" />
<#else>
	<#assign hasFieldErrors = fieldErrors?exists && fieldErrors[parameters.name]?exists/>
	<#include "/${parameters.templateDir}/geni/controlheader-trlogic.ftl" />
	<#if parameters.inputcolspan?exists>
		<#assign inputColumnSpan = parameters.inputcolspan />
	<#else>
		<#assign inputColumnSpan = 1 />
	</#if>
	<td<#if inputColumnSpan?number gt 1> colspan="${inputColumnSpan}"</#if>>
	<#if qTableLayout_tablecolspan?exists >
		<#assign columnCount = qTableLayout_currentColumnCount?number + inputColumnSpan?number />	
		<#-- update the value of the qTableLayout_currentColumnCount bean on the value stack. -->
		${stack.setValue('#qTableLayout_currentColumnCount', columnCount)}
	</#if>
	<#include "/${parameters.templateDir}/simple/checkbox.ftl" />
	
	<#if parameters.labelposition?default("") != 'top' && parameters.labelposition?default("") != 'left'>
		<#if parameters.label?exists> <label<#t/>
			<#if parameters.id?exists>
			 for="${parameters.id?html}"<#rt/>
			</#if>
			<#if hasFieldErrors>
			 class="checkboxErrorLabel"<#rt/>
			<#else>
			 class="checkboxLabel"<#rt/>
			</#if>
	>${parameters.label?html}</label><#rt/>
		</#if>
	</#if>
	
	<#include "/${parameters.templateDir}/geni/controlfooter.ftl" /><#nt/>
</#if>
